﻿@model Whatzup.Mobile.Models.RegisterModel

@{
    ViewBag.Title = "Register";
}
<section class="content">
<h2>Create a New Account</h2>
<p>
    Use the form below to create a new account. 
</p>
<p>
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>



@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
 
        <fieldset>
            <legend>Account Information</legend>
         
         
                @Html.LabelFor(m => m.UserName)
         
            
                @Html.TextBoxFor(m => m.UserName, new { required = "required",placeholder="User Name" })
                @Html.ValidationMessageFor(m => m.UserName)
          
            <br>
          
                @Html.LabelFor(m => m.Email)
         
                @Html.TextBoxFor(m => m.Email, new { type="email", required="required",placeholder="Email"})
                @Html.ValidationMessageFor(m => m.Email)
            <br>

         
                @Html.LabelFor(m => m.Password)
           
        
                @Html.PasswordFor(m => m.Password, new { type = "password", required = "required", placeholder = "Password" })
                @Html.ValidationMessageFor(m => m.Password)
         <br>

           
                @Html.LabelFor(m => m.ConfirmPassword)
         
       
                @Html.PasswordFor(m => m.ConfirmPassword, new { type = "password", required = "required", placeholder = "Confirm Password" })
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
           <br>

          
                <input class="submit" type="submit" value="Register" />
            
        </fieldset>

}
</section>

@section scripts
{
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
}